package com.authorization.project.authorization.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.authorization.framework.aspectj.lang.annotation.Excel;
import com.authorization.framework.web.domain.BaseEntity;

/**
 * 微服务关系对象 microservice_relationship
 * 
 * @author 李晓雷
 * @date 2020-04-24
 */
public class MicroserviceRelationship extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 微服务主键 */
    @Excel(name = "微服务主键")
    private Long microserviceId;

    /** 关联主键 */
    @Excel(name = "关联主键")
    private Long relationId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMicroserviceId(Long microserviceId) 
    {
        this.microserviceId = microserviceId;
    }

    public Long getMicroserviceId() 
    {
        return microserviceId;
    }
    public void setRelationId(Long relationId) 
    {
        this.relationId = relationId;
    }

    public Long getRelationId() 
    {
        return relationId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("microserviceId", getMicroserviceId())
            .append("relationId", getRelationId())
            .toString();
    }
}
